// 电子讲解
import request from '@/utils/request'

// 新增
export function add(data) {
  return request({
    url: '/bs/jingqu/jingdian/save',
    method: 'post',
    data
  })
}

// 分页
export function list(params) {
  return request({
    url: '/bs/jingqu/jingdian/page/list',
    method: 'get',
    params
  })
}

//导出
export function exportFn(params) {
  return request({
    url: '/bs/jingqu/jingdian/export',
    method: 'get',
    params
  })
}

// 删除
export function deleteFn(ids) {
  return request({
    url: `/bs/jingqu/jingdian/delete/${ids}`,
    method: 'post'
  })
}

// 根据景区id获取下面所有电子讲解
export function getDetail(ids) {
  return request({
    url: `/bs/jingqu/jingdian/getJingDianByJingQuId/${ids}`,
    method: 'get'
  })
}

// 修改
export function updateFn(data) {
  return request({
    url: '/bs/jingqu/jingdian/update',
    method: 'put',
    data
  })
}
